﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/CSS/button_styles.css?version=1" rel="stylesheet" />
    <link href="~/Content/CSS/style.css?version=13" rel="stylesheet" />
    <script src="~/Scripts/jquery-2.0.3.min.js"></script>
    <script src="~/Scripts/jquery.bxslider.min.js"></script>
    <link href="~/Content/CSS/jquery.bxslider.css?version=3" rel="stylesheet" />
    <link href="~/Content/CSS/PagedList.css" rel="stylesheet" />
    @RenderSection("scripts", false)
    <title>@ViewBag.Title</title>
</head>
<body>
    <div id="fb-root"></div>
    <script>(function (d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

    </script>

    <div class="page">

        <div style="height: 30px" class="divOnTop">
            
            <div class="dangnhap" >
                @if (Session["khachhang"] != null)
                {
                    <div style="font-size: 13px;">
                        @{BabyToys.Models.KhachHang khachhang = Session["khachhang"] as BabyToys.Models.KhachHang;}
                        <span>Xin chào</span><a href="/TaiKhoan" style="color: #ddd"> @khachhang.TenDangNhap </a> <span>(<a href="~/Taikhoan/dangxuat">Thoát ra</a>)</span>
                    </div>
            
                }
                else
                {
                    @:<a href="/TaiKhoan/DangNhap">Đăng nhập </a>|
                    @:<a href="/TaiKhoan/DangKy">Đăng kí</a>
        }
      </div>
            <div class="cartmini">
                <a href="~/giohang">
                    <img src="~/Content/Images/Baby-Stroller-icon.png" />
                    @{int count = BabyToys.Models.ViewModel.CartSession.GetCart(this.Context) != null ? @BabyToys.Models.ViewModel.CartSession.GetCart(this.Context).ListItem.Count() : 0;}
                 Giỏ hàng của bạn hiên có @count sản phẩm</a></div>
           </div>
    
        <div class="header">
            @RenderPage("~/Views/Shared/Home/_Header.cshtml")
        </div>
        <div class="navigation">
            @{Html.RenderAction("navigation", "Home");}
        </div>
        @RenderBody()
        <div class="clear"></div>
        <div class="footer">
            BabyToys - số 140, Lãnh Binh Thăng, phường 13, quận 11, tp HCM.
            <br />
        </div>
    </div>
</body>
</html>
